<%= debug(@totals) rescue nil %>

<%= debug(@totals.each {|s| s[:total]}) rescue nil %>